<head>
  <style>
    html, body {
      /* Use simple predictable spacing between html, body and content so
         we can propertly test scrollWidth and scrollHeight */
      margin: 0;
      padding: 5px;
    }
    div {
      height: 10000px;
      width: 10000px;
    }
  </style>
  <script>
      function scroll() {
        document.body.scrollTop = 5000;
        document.body.scrollLeft = 4000;

        // The calls below should not take effect, given
        // that setting scrollTop/Left on the root node
        // is no-op in quirks-mode.
        document.documentElement.scrollTop = 1;
        document.documentElement.scrollLeft = 1;

        parent.verifyTest()
      }
  </script>
</head>
<body onload="scroll()">
    <div></div>
</body>
